using TerritoryGame.Domain.Entities;

namespace TerritoryGame.Domain.Entities.App
{
    public class PaintAction : EntityBase
    {
        public Guid RoomId { get; set; } // Foreign key to GameRoom
        public Guid PlayerId { get; set; } // Foreign key to Player
        public int X { get; set; } // 涂色的X坐标
        public int Y { get; set; } // 涂色的Y坐标
        public string Color { get; set; } = string.Empty; // 涂色使用的颜色
        public string Tool { get; set; } = string.Empty; // 使用的工具（brush, eraser, fill等）
        public long Timestamp { get; set; } // 时间戳
        
        // 导航属性
        public Player Player { get; set; } = null!;
        public GameRoom Room { get; set; } = null!;
    }
}
